<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Simpla Admin</title>

<include file="Admin:Resources" />

</head>
<body>
	<div id="body-wrapper"> 
		<div id="main-content"> 
			


			<div class="content-box">
				
				<div class="content-box-header">
					
					<h3>添加文章</h3>
					
					<ul id="my_tab">
						<li><a href="#" ></a></li>
								
					</ul>
					<div class="clear"></div>
				</div> 
			
			<form action="__APP__/Admin/editor_node_ok" method="POST" enctype="multipart/form-data"    >
				<div class="content-box-content add_type" >
					<table>
						<tbody>
							<tr>
									<td>父节点</td>
									<td id="pid">
										<select name="pid">
											<option value="0" >跟节点</option>
											<?php foreach($node_info as $val){ ?>
												<option <?php if($val['id']==$node['pid']){echo 'selected="selected"';} ?> value="<?php echo $val['id'];?>"><?php if($val['level']==1){echo $val['title'];}else{echo '|'.str_repeat('&nbsp;',$val['level']*2).$val['title'];} ?></option>
											<?php }?>
										</select>
									</td>
									<td id="type" style="color:red">(必填)</td>
								</tr>
								<tr>
									<td>类型:</td>
									<td id="level">
										<select name="level">
											<option value=1 <?php if($node['level']==1){ echo 'selected="true"';} ?> >项目</option>
											<option value=2 <?php if($node['level']==2){ echo 'selected="true"';} ?> >模块</option>
											<option value=3 <?php if($node['level']==3){ echo 'selected="true"';} ?> >操作</option>
										</select>
									</td>
									<td id="user_name" style="color:red">(必填)</td>
								</tr>
								
								<tr>
									<td>英文名称:</td>
									<td><input class="singleErea" type="text" name="name" value="{$node.name}" /></td>
									<td id="password" style="color:red">(必填)</td>
								</tr>
								
								<tr>
									<td>中文名称:</td>
									<td><input class="singleErea" type="text" name="title" value="{$node.title}" /> </td>
									<td id="password2" style="color:red">(必填)</td>
								</tr>
								
								<tr>
									<td>状态:</td>
									<td><input id="checkbox" type="checkbox"  name="status" <?php if($node['status']==1){ echo 'checked';} ?> /> </td>
									<td id="password2" style="color:red">(必填)</td>
								</tr>
									<input type="hidden" name="id" value="{$node.id}" />
								<tr>
									<td>操作:</td>
									<td><input class="button" style=" height:26px;" type="submit" value="确认添加" /></td>
									<td></td>
								</tr>	
								
						</tbody>	
					</table>
				</div>
			</form>
				
			</div>
			
			<div class="clear"></div>
			
			
			
		</div> 

	</div>
	
</body>
</html>
